home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 21 code / Custom GX Printer Drivers / CustomWriter GX 1.0.1 / NewApp.a < prev    next >
Encoding:
Text File  |  1995-05-03  |  2.4 KB  |  112 lines  |  [TEXT/MPS ]

  1. ;------------------------------------------------------------------------------
  2. ;
  3. ;    FILENAME
  4. ;        NewApp.a
  5. ;
  6. ;    DESCRIPTION
  7. ;        Contains the jump table for all of the messages we override except
  8. ;        the old-application compatibility ones.  Also includes our special
  9. ;        global data routines used by the code in GlobalData.c.
  10. ;
  11. ;    COPYRIGHT
  12. ;        Copyright © 1995 Apple Computer, Inc.
  13. ;        All rights reserved.
  14. ;    
  15. ;    Modification history
  16. ;        05/03/95 - Dave Hersey -    Version 1.0.1 to fix some minor bugs in
  17. ;                                    CustomBufferingAndIO.c.
  18. ;
  19. ;        01/14/95 - Dave Hersey -    Created from the shell of a hollowed-out
  20. ;                                    ImageWriter driver.
  21. ;
  22. ;    NOTE: Relevant goodies are listed in MPW's "Mark" menu.
  23. ;
  24. ;--------------------------------------------------------------------------------
  25.  
  26.                 CASE    OBJ
  27.                 STRING    ASIS
  28.  
  29. SD_JumpTable    PROC    EXPORT
  30.                 dc.l    0            
  31.  
  32.     ; Raster messages
  33.  
  34.                 IMPORT SD_RasterDataIn
  35.                 JMP SD_RasterDataIn
  36.  
  37.     ; Universal messages
  38.  
  39.                 IMPORT SD_ImageJob
  40.                 JMP SD_ImageJob
  41.  
  42.                 IMPORT SD_StartSendPage
  43.                 JMP SD_StartSendPage
  44.             
  45.                 IMPORT SD_FinishSendPage
  46.                 JMP SD_FinishSendPage
  47.             
  48.                 IMPORT SD_SetupImageData
  49.                 JMP SD_SetupImageData
  50.  
  51.                 IMPORT SD_OpenConnection
  52.                 JMP SD_OpenConnection
  53.             
  54.                 IMPORT SD_CloseConnection
  55.                 JMP SD_CloseConnection
  56.             
  57.                 IMPORT SD_CleanupOpenConnection
  58.                 JMP SD_CleanupOpenConnection
  59.  
  60.                 IMPORT SD_BufferData
  61.                 JMP SD_BufferData
  62.  
  63.                 IMPORT SD_FreeBuffer
  64.                 JMP SD_FreeBuffer
  65.  
  66.                 IMPORT SD_WriteData
  67.                 JMP SD_WriteData
  68.  
  69.                 IMPORT SD_DumpBuffer
  70.                 JMP SD_DumpBuffer
  71.  
  72.  
  73. ;    -----------------------------------------------------------
  74. ;                JUMP TABLE GLOBAL DATA SUPPORT
  75. ;    -----------------------------------------------------------
  76.  
  77. ;    GlobalDataHdl is storage for a handle to our global data.
  78. ;    We save and retrieve this value using the routines below.
  79. ;    We default the value to nil, so that our global data
  80. ;    routines can see if a valid handle has been stored here.
  81. ;
  82.  
  83. GlobalDataHdl        DC.L    0
  84.  
  85.                     EXPORT    SetDriverGlobals
  86.                     EXPORT    GetDriverGlobals
  87.  
  88.  
  89. ;    SetDriverGlobals saves the passed parameter in our global data storage
  90. ;    (above).  We call this routine from CreateAndStoreGlobals in
  91. ;    NewApp.c.
  92. ;
  93.  
  94. SetDriverGlobals    LINK    A6,#0
  95.                     LEA        GlobalDataHdl,A0
  96.                     MOVE.L    8(A6),(A0)
  97.                     UNLK    A6
  98.                     RTS
  99.  
  100.  
  101. ;    GetDriverGlobals retrieves the handle stored in our global data
  102. ;    storage (above).  We call this routine from several routines in
  103. ;    NewApp.c.
  104. ;
  105.  
  106. GetDriverGlobals    LEA        GlobalDataHdl,A0
  107.                     MOVE.L    (A0),D0
  108.                     RTS
  109.  
  110.                     ENDPROC
  111.     END
  112.